package com.yunsc.store.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunsc.store.dao.YunscPrinterDao;
import com.yunsc.store.entity.YunscPrinterEntity;
import com.yunsc.store.service.YunscPrinterService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("yunscPrinterService")
public class YunscPrinterServiceImpl extends ServiceImpl<YunscPrinterDao, YunscPrinterEntity> implements YunscPrinterService {


    @Override
    public List<YunscPrinterEntity> queryPrinterAll(Integer currentStoreId) {
        LambdaQueryWrapper<YunscPrinterEntity> lqw = new LambdaQueryWrapper<>();
        lqw.eq(YunscPrinterEntity::getStoreId, currentStoreId);
        lqw.eq(YunscPrinterEntity::getIsDelete, 0);
        return this.list(lqw);
    }
}